Skip to content
This repository was archived by the owner on Nov 26, 2025. It is now read-only.

Conversation

@fivecar
Copy link
Contributor

@fivecar fivecar commented Dec 11, 2022

Motivation

Project wasn't building successfully in Xcode. (See #117)

Description

Fixes (#117). The import location is not correct for modern versions of Xcode, which otherwise fail to find the auto-generated Swift header.

Test plan

  1. yarn test
  2. Install, build, and run package within another project

Checklist

  • I have added a decision record entry, PR includes changes to monorepo setup that may require explanation

This addresses Shopify#117, and gets the header to import correctly in modern versions of Xcode.
@fivecar
Copy link
Contributor Author

fivecar commented Dec 11, 2022

(Could someone reset my CLA status? I accidentally signed up with the wrong email, and now the CLA process won't let me sign the CLA)

@FrederickEngelhardt
Copy link

FrederickEngelhardt commented Jan 13, 2023

Same issue. Time to run patch-package. Hope this gets merged soon. Noticed this on version 4.1.0

Patch reference if you want to just copy paste this into your patches directory

diff --git a/node_modules/@shopify/react-native-performance/ios/ReactNativePerformance/ReactNativePerformance.m b/node_modules/@shopify/react-native-performance/ios/ReactNativePerformance/ReactNativePerformance.m
index 4852113..dbb4bb5 100644
--- a/node_modules/@shopify/react-native-performance/ios/ReactNativePerformance/ReactNativePerformance.m
+++ b/node_modules/@shopify/react-native-performance/ios/ReactNativePerformance/ReactNativePerformance.m
@@ -1,5 +1,5 @@
 #import "ReactNativePerformance.h"
-#import "ReactNativePerformance-Swift.h"
+#import <ReactNativePerformance/ReactNativePerformance-Swift.h>
 
 static NSTimeInterval startupTimestamp = -1.0;

@ElviraBurchik ElviraBurchik merged commit e80e6d4 into Shopify:main Feb 23, 2023
@adithyavis
Copy link

@ElviraBurchik Are you planning on getting this released? Version 4.1.2 was released 3 years ago.

@fivecar fivecar deleted the install_header_fix branch September 27, 2025 00:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants